<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* .container{
            width: 200px;
            height: 200px;
            border: 1px solid rebeccapurple;
            padding: 20px;
        }
        .box1{
            width: 100px;
            height: 100px;
            background-color: royalblue;
            position: relative;
           
        }
        .box1::after{
            content: "";
            width: 1px;
            height: 80%;
            background-color: red;
            display: inline-block;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        } */
        ul{
            list-style: none;
            display: flex;
            height: 50px;
            background-color: sandybrown;
        }
        ul li{
            position: relative;
            line-height: 50px;
            padding: 0 5px;
        }
        ul li::after{
            content: "";
            display: inline-block;
            width: 1px;
            height: 80%;
            background-color: skyblue;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            margin: 0 5px;
        }
    </style>
</head>
<body>
    <script src="./js/外部js.js"></script>
    <!-- <div class="container">
        <div class="box1">

        </div>
    </div> -->
        <ul>
            <li>小米手机</li>
            <li>小米手机</li>
            <li>小米手机</li>
            <li>小米手机</li>
            <li>小米手机</li>
            <li>小米手机</li>
        </ul>
</body>
</html>